let http = require('http');
let server = http.createServer((req,res)=>{
    res.writeHead(200,{'Content-Type' : 'text/html;charset=utf-8'
});
    if(req.url == '/' || req.url == '/index/index'){
        res.end('首页')
    }else if(req.url == '/index/login'){
        res.end('登入页面')
    }else if(req.url == '/index/reg'){
        res.end('注册页面')
    }else if(req.url == '/user/product'){
        res.end('产品列表')
    }else if(req.url == '/user/theorder'){
        res.end('订单列表')
    }else{
        res.end('404 无法找到页面')
    }
})
server.listen(80,'www.yyff168.com');